<?php if (!defined('THINK_PATH')) exit();?>
	<div id="content-header">
		<div id="breadcrumb"> <a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>用户管理</a>
		 <a href="/index.php/Matrix/Order/index" form-type='content'>订单详细列表</a> </div>
	</div>
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-title"> <span class="icon"> <i class="icon-th"></i> </span>
						<h5>数据列表</h5>
					</div>
					<div class="widget-content ">
						<div class="" style="height: 50px;">
							<div style="float: right;">
								<form action="/index.php/Matrix/Order/index" method="post" id="form1">
									<input type="hidden" name="table" value="1" />
									<input type="hidden" name="order_statue" value="<?php echo ($order_statue); ?>" />
									<!-- <input type="hidden" name="classe_id" value="<?php echo (session('classe_id')); ?>" /> --> 审核时间从
									<span style="position: relative;" class="y-datatime">
										<input type="text" data-date="<?php echo date('Y-m-d',time())?>" data-date-format="yyyy-mm-dd" value="" name = 'between_time_start' class="datepicker width_110px" placeholder="选择时间">&nbsp;
									    <a href="#" class="data-del" style="position: absolute;right: 15px;line-height: 30px;display: inline-block;font-size: 18px;"><i class="icon-trash"></i></a>
									</span> 到
									<span style="position: relative;" class="y-datatime">
									<input type="text" data-date="<?php echo date('Y-m-d',time())?>" data-date-format="yyyy-mm-dd" value="" name = 'between_time_end' class="datepicker width_110px" placeholder="选择时间">&nbsp;
									 <a href="#" class="data-del" style="position: absolute;right: 15px;line-height: 30px;display: inline-block;font-size: 18px;"><i class="icon-trash"></i></a>
									</span>
								&nbsp;
									<input type="text" placeholder="支付串码" name="code" class="width_200px">&nbsp;
									<button class="y_btn yun_search" form-type="form-table"><i class="icon-search icon-white"></i></button>
								</form>
							</div>
						</div>
						<div id="myAlert" class="modal hide" aria-hidden="true" style="display: none;">
							<div class="modal-header">
								<button data-dismiss="modal" class="close" type="button">×</button>
								<h3>批量删除</h3>
							</div>
							<div class="modal-body">
								<p>内容删除之后将不能够恢复，确定要做批量删除吗？</p>
							</div>
							<div class="modal-footer"> <a data-dismiss="modal" class="btn btn-primary data-del-all" href="/index.php/Matrix/Order/foreverdelete">确定</a>
								<a data-dismiss="modal" class="btn" href="#">取消</a> </div>
						</div>
						
						<div id="table">
							

<form class="form-horizontal" method="post" action="/index.php/Matrix/Order/batch_summary_list" name="basic_validate" id="basic_validate" novalidate="novalidate">
	
<table class="table table-bordered table-striped with-check">
	<thead>
		<tr>
			<th><input type="checkbox" id="title-table-checkbox"
				name="title-table-checkbox" /></th>
			<th width="30px">序号</th>
			<th>盈彩账号</th>
			<th>彩种</th>
			<th>购买套餐</th>
			<th>价格</th>
			<th>支付方式</th>
			<th>订单状态</th>
			<th>支付串码</th>
			<th>申请时间</th>
			<th>审核时间</th>
			<th width="100px">操作</th>
		</tr>
	</thead>
	
	<tbody>
		<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>
			<td><input type="checkbox" name=checkboxes[] value=<?php echo ($v["id"]); ?> /></td>
			<td>
				<div class="numerical"><?php echo ($key+1); ?></div>
			</td>
			<td><?php echo ($v["username"]); ?></td>
			<td><?php echo ($v["caizhong"]); ?></td>
			<td><?php echo ($v["taocan"]); ?></td>
			<td><strong style="font-weigth: bold; color: red"><?php echo ($v["money"]); ?></strong></td>
			
			<td><?php if($v['pay_type'] == 0): ?>未支付 <?php elseif($v['pay_type'] == 1): ?> <strong
					style="font-weigth: bold; color: blue">支付宝支付</strong> <?php elseif($v['pay_type'] == 2): ?> <strong
					style="font-weigth: bold; color: green">微信支付</strong> <?php else: ?> <strong
					style="font-weigth: bold; color: red">免支付</strong><?php endif; ?></td>
			<td><?php if($v['order_statue'] == 0): ?>待支付 <?php elseif($v['order_statue'] == 1): ?> <strong
					style="font-weigth: bold; color: blue">待审核</strong> <?php elseif($v['order_statue'] == 2): ?> <strong
					style="font-weigth: bold; color: green">审核通过</strong> <?php else: ?> <strong
					style="font-weigth: bold; color: red">已过期</strong><?php endif; ?></td>
			<td><strong style="font-weigth: bold; color: red"><?php echo ($v["code"]); ?></strong></td>
			<td><?php echo (date("Y-m-d H:i:s",$v["add_time"])); ?></td>
			<td><?php echo (date("Y-m-d H:i:s",$v["review_time"])); ?></td>
			<td class="center">
			<?php if($v['order_statue'] == 2 ): else: ?>
			 	<a class="btn btn-primary" href="/index.php/Matrix/Order/batch_summary?id=<?php echo ($v["id"]); ?>" form-type='content' onClick="return confirm('确定审核通过?');">审核通过</a><?php endif; ?>
			</td>
		</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		<tr>
					<td>/</td>
					<td>/</td>
					<th >/</th>
					<th >/</th>
					<th style="color:green;font-size:20px;">所有页面数据合计:</th>
					<th style="color:green;font-size:20px;" ><?php echo ($statistics); ?></th>
					<th >/</th>
					<th >/</th>
					<td>/</td>
					<th >/</th>
					<th >/</th>
					<th >/</th>
				</tr>
		
	</tbody>
</table>

<div id="myAlert-bean" class="modal hide" aria-hidden="true"
	style="display: none;">
	<div class="modal-header">
		<button data-dismiss="modal" class="close" type="button">×</button>
		<h3>删除</h3>
	</div>
	<div class="modal-body">
		<p>内容删除之后将不能够恢复，确定要做删除吗？</p>
	</div>
	<div class="modal-footer">
		<a data-dismiss="modal" class="btn btn-primary data-del-bean-alert"
			href="/index.php/Matrix/Order/foreverdelete">确定</a> <a data-dismiss="modal"
			class="btn" href="#">取消</a>
	</div>
</div>
<?php if($v['order_statue'] != 2): ?><div>
<button type="submit" class="btn btn-success" form-type="form-content" >批量审核通过</button><?php endif; ?>
</form>

<!-- page --> <div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix">
	<div class="" style="float: left;" id="page-left-info">
		<div>当前第 <?php echo ($currentPage); ?> 页/ 共 <?php echo ($totalCount); ?> 条 / 共 <?php echo ($totalPage); ?> 页 跳转到 &nbsp;</div>
		<div>
			<input type="text" class="span2" id ="yun_page_skip_input" value="<?php echo ($currentPage); ?>">
		</div>
		<div><a href='<?php echo ($goPage); ?>&between_time_start=<?php echo ($between_time_start); ?>&between_time_end=<?php echo ($between_time_end); ?>' id = "yun_page_skip" sytle="font-size: 20px;" form-type="page-table"><i class="icon-circle-arrow-right"></i></a></div>
	</div>
	<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
		<?php echo ($page); ?>
	</div>
</div> 


						</div>
					</div>
				</div>
			</div>
		</div>
	</div>